TGGS Computer Science

🐍 Coding Activity 1: Introducing 2D Lists


Each menu item below has:

Your teacher will demonstrate how to access items from a record (a list within a list):

It will look like this

Allergy advice: bread contains gluten

Following this you will learn how to output parts of each record to display each allergen

To do this, you will use a for i in range() sequence

Allergy advice: bread contains gluten
Allergy advice: yogurt contains lactose
Allergy advice: nutella contains hazelnut
Allergy advice: cheese contains dairy
Allergy advice: pasta contains gluten